<!--
 * @Author: humengchuan 531537052@qq.com
 * @Date: 2024-12-09 14:53:52
 * @LastEditors: humengchuan 531537052@qq.com
 * @LastEditTime: 2024-12-10 10:16:10
 * @FilePath: \project-my\nuxt3-app-pro\pages\index.vue
 * @Description: 
-->
<template>
    <div>
        入口页面测试
        <el-button type="primary" @click="goHome">
            <i class="el-icon-edit"></i>
            go home
        </el-button>
    </div>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue'

// created(()=> {
//   console.log('created')
// })
const goHome = () => {
    // this.$router.push('/home')
    navigateTo('/home')
}

onMounted(() => {
    console.log('mounted')
})

</script>

<style scoped></style>